home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr26 / gzip111.zip / README < prev   
Text File  |  1993-06-01  |  7KB  |  148 lines

  1. This is the file README for the gzip distribution, version 1.1.1.
  2.  
  3. gzip (GNU zip) is a compression utility designed to be a replacement
  4. for 'compress'. Its main advantages over compress are much better
  5. compression and freedom from patented algorithms.  The GNU Project
  6. uses it as the standard compression program for its system.
  7.  
  8. gzip currently uses by default the LZ77 algorithm used in zip 1.9 (the
  9. portable pkzip compatible archiver). The gzip format was however
  10. designed to accommodate several compression algorithms. See below
  11. for a comparison of zip and gzip.
  12.  
  13. gunzip can currently decompress files created by gzip, compress or
  14. pack. The detection of the input format is automatic.  For the
  15. gzip format, gunzip checks a 32 bit CRC. For pack, gunzip checks the
  16. uncompressed length.  The 'compress' format was not designed to allow
  17. consistency checks. However gunzip is sometimes able to detect a bad
  18. .Z file because there is some redundancy in the .Z compression format.
  19. If you get an error when uncompressing a .Z file, do not assume that
  20. the .Z file is correct simply because the standard uncompress does not
  21. complain.  This generally means that the standard uncompress does not
  22. check its input, and happily generates garbage output.
  23.  
  24. gzip produces files with a .gz extension. Previous versions of gzip
  25. used the .z extension, which was already used by the 'pack'
  26. Huffman encoder. gunzip is able to decompress .z files (packed
  27. or gzip'ed).
  28.  
  29. Several planned features are not yet supported (see the file TODO).
  30. See the file NEWS for a summary of changes since 0.5.  See the file
  31. INSTALL for installation instructions. Some answers to frequently
  32. asked questions are given in the file INSTALL, please read it. (In
  33. particular, please don't ask me once more for an /etc/magic entry.)
  34.  
  35. WARNINGS about broken optimizers:
  36.  
  37. - on the NeXT, "cc -finline-functions" is broken.  gzip produces
  38.   valid .z files but they are much too large because the string
  39.   matching code misses most matches. Use "cc -O" instead.
  40.  
  41. - on the Mips R4000, gcc -O (version 2.3.1) generates bad code, use cc
  42.   or just gcc -g instead.
  43.  
  44. - gcc 2.3.3 on the SGI Indigo IRIX 4.0.5 also produces bad code. Use
  45.   instead: make CC='cc -O2' or gcc without -O.
  46.  
  47. - on Sparc with SunOS 4.1.1 and the SC1.0 compiler, the optimizer
  48.   works up to -O3 but -O4 does not work.
  49.  
  50. - MSC 5.1 with -Ox and -DDYN_ALLOC generates bad code in inflate.c.
  51.   The default is static allocation (no DYN_ALLOC) and -Ox works on inflate.c.
  52.   But -Ox does not work on util.c, so you must use -Oait -Gs.
  53.  
  54. - On dnix 5.3 2.2 cc version 2.37c is buggy. Version 2.38d works.
  55.  
  56. For all machines, Use "make check" to check that gzip was compiled correctly.
  57.  
  58. Please send all comments and bug reports by electronic mail to:
  59.    Jean-loup Gailly <jloup@chorus.fr>
  60.  
  61. or, if this fails, to bug-gnu-utils@prep.ai.mit.edu.
  62. Bug reports should ideally include:
  63.  
  64.     * The complete output of "gzip -V" (or the contents of revision.h
  65.       if you can't get gzip to compile)
  66.     * The hardware and operating system (try "uname -a")
  67.     * The compiler used to compile (if it is gcc, use "gcc -v")
  68.     * A description of the bug behavior
  69.     * The input to gzip, that triggered the bug
  70.  
  71. The package crypt++.el is highly recommended to manipulate gzip'ed
  72. file from emacs. It recognizes automatically encrypted and compressed
  73. files when they are first visited or written. It is available via
  74. anonymous ftp to roebling.poly.edu [128.238.5.31] in /pub/crypt++.el.
  75. The same directory contains also patches to dired, ange-ftp and info.
  76. GNU tar 1.11.2 has a -z option to invoke directly gzip, so you don't have
  77. to patch it.
  78.  
  79. The znew and gzexe shell scripts provided with gzip benefit from
  80. (but do not require) the cpmod utility to transfer file attributes.
  81. It is available by anonymous ftp on gatekeeper.dec.com in
  82. /.0/usenet/comp.sources.unix/volume11/cpmod.Z.
  83.  
  84. The sample programs zread.c, sub.c and add.c are provided as examples
  85. of useful complements to gzip. Read the comments inside each source file.
  86. The perl script ztouch is also provided as example (not installed
  87. by default since it relies on perl).
  88.  
  89.  
  90. gzip is free software, you can redistribute it and/or modify it under
  91. the terms of the GNU General Public License, a copy of which is
  92. provided under the name COPYING. The latest version of gzip are always
  93. available by ftp in prep.ai.mit.edu:/pub/gnu, or in any of the prep
  94. mirror sites:
  95.  
  96. - sources in gzip-*.tar (or .shar or .tar.z)
  97. - Solaris 2 executables in sparc-sun-solaris2/gzip-binaries-*.tar
  98. - MSDOS lha self-extracting exe in gzip-msdos-*.exe. Once extracted,
  99.   copy gzip.exe to gunzip.exe and zcat.exe, or use "gzip -d" to decompress.
  100.  
  101. A VMS executable is available in ftp.spc.edu:[.macro32.savesets]gzip-1-*.zip
  102. (use [.macro32]unzip.exe to extract).
  103.  
  104. Many thanks to those who provided me with bug reports and feedback.
  105. See the files THANKS and ChangeLog for more details.
  106.  
  107.  
  108.         Note about zip vs. gzip:
  109.  
  110. The name 'gzip' was a very unfortunate choice, because zip and gzip
  111. are two really different programs, although the actual compression and
  112. decompression sources were written by the same persons. A different
  113. name should have been used for gzip, but it is too late to change now.
  114.  
  115. zip is an archiver: it compresses several files into a single archive
  116. file. gzip is a simple compressor: each file is compressed separately.
  117. Both share the same compression and decompression code for the
  118. 'deflate' method.  unzip can also decompress old zip archives
  119. (implode, shrink and reduce methods). gunzip can also decompress files
  120. created by compress and pack. zip 1.9 and gzip do not support
  121. compression methods other than deflation. (zip 1.0 supports shrink and
  122. implode). Better compression methods may be added in future versions
  123. of gzip. zip will always stick to absolute compatibility with pkzip,
  124. it is thus constrained by PKWare, which is a commercial company.  The
  125. gzip header format is deliberately different from that of pkzip to
  126. avoid such a constraint.
  127.  
  128. On Unix, gzip is mostly useful in combination with tar. GNU tar
  129. 1.11.2 has a -z option to invoke gzip automatically.  "tar -z"
  130. compresses better than zip, since gzip can then take advantage of
  131. redundancy between distinct files. The drawback is that you must
  132. scan the whole tar.z file in order to extract a single file near
  133. the end; unzip can directly seek to the end of the zip file. There
  134. is no overhead when you extract the whole archive anyway.
  135. If a member of a .zip archive is damaged, other files can still
  136. be recovered. If a .tar.z file is damaged, files beyond the failure
  137. point cannot be recovered. (Future versions of gzip will have
  138. error recovery features.)
  139.  
  140. gzip and gunzip are distributed as a single program. zip and unzip
  141. are, for historical reasons, two separate programs, although the
  142. authors of these two programs work closely together in the info-zip
  143. team. zip and unzip are not associated with the GNU project.
  144. The sources are available by ftp in
  145.  
  146.      oak.oakland.edu:/pub/misc/unix/zip19p1.zip
  147.      oak.oakland.edu:/pub/misc/unix/unz50p1.tar-z
  148.